package com.teach;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;

public class ArrayList01 {

	public static void main(String[] args) {
		ArrayList<Long> al = new ArrayList<Long>();
		al.add(1L);
		System.out.println(al);
		
		al = new ArrayList<Long>(10);
		al.add(1L);
		System.out.println(al);
		
		Collection<Long> c = Arrays.asList(1L,2L,3L);
		al = new ArrayList<Long>(c);
		System.out.println(al);
	}
}
